package com.composite.demo2.impl;

import java.util.Iterator;
import com.composite.demo2.abs.MenuComponent;

/**
 * 空迭代器：没有需要遍历的内容
 * 
 * @author dell
 * 
 */
public class NullIterator implements Iterator<MenuComponent> {

	public MenuComponent next() {
		return null;
	}

	public boolean hasNext() {
		return false;
	}

	public void remove() {
		throw new UnsupportedOperationException();
	}
}
